package cn.zpro.jeecg.mvc.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import cn.zpro.jeecg.mvc.service.MvcService;
import cn.zpro.jeecg.mvc.util.Constant;

public class MvcListenter implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent context) {
		MvcService s = new MvcService();
		context.getServletContext().setAttribute(Constant.XML_ROOT, s.findDocumentByFileName("mvc.xml"));
		
	}

}
